<div class="page-content" >
	<div class="panel panel-default">
		<div class="panel-heading">权限组信息</div>
		<div class="panel-body">
			 <form id="myform"  class="form-horizontal" enctype="multipart/form-data" method="post" action="<{:addons_url('Auth/Index/group_add_do')}>">
                    <input type="hidden" name="id" value="<{$data.rid}>">
                    	 
                            <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">分组名</label>
                                <div class="col-sm-7">
                                    <input  type="text" class="form-control" id="title" name="title" value="<{$data.title}>">
                                    
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">模块名</label>
                                <div class="col-sm-7">
                                    <input type="text" placeholder="模块名称/控制器名称/方法名组合" name="authcode" id="authcode" class="form-control" value="<{$data.authcode}>">
                                    
                                </div>
                            </div>
							
							   <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">链接</label>
                                <div class="col-sm-7">
                                    <input style="width:600px" placeholder="链接" type="text" name="url" id="url" class="form-control" value="<{$data.url}>">
                                  
                                </div>
                            </div>
							
							
							 <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">图标</label>
                                <div class="col-sm-7">
                                    <input style="width:600px" placeholder="字体样式" type="text" name="ico" id="ico" class="form-control" value="<{$data.ico}>">
                                  
                                </div>
                            </div>
							
							 <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">分类</label>
                                <div class="col-sm-7">
								 <php>$auth_cate=dict('auth_cate')</php>
                                    <select name="cate">
									<volist name="auth_cate" id="vo">
									<option <if condition="$data['cate'] eq $key">selected="selected"</if> value="<{$key}>"><{$vo.name}></option>
									</volist>>
									</select>
                                  
                                </div>
                            </div>
							
							
							<!--<div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">图标</label>
                                <div class="col-sm-7">
                                    <div id="preview"></div>
                                    <input type="file" id="picname" name="picname" onchange="previewImage(this)"  /><span style="color:red;">(220*168)</span>
                                    <if condition="$data['id']">
                                    	<img src="__Img__<{$data.ico}>" width="50" style="display: inline;" />
                                    
                                    </if>
                            
                                </div>
                            </div>-->

                            
                             <div class="form-group">
					<div class="col-sm-offset-2 col-sm-7">
						<button type="submit" class="btn btn-primary">保存</button>
					</div>
				</div>

                       
                     </form>
		</div>
	</div>
</div>

<script>
 
$(function(){
    $(".form-horizontal").bootstrapValidator({
        message: '您填入的值不合法',
        fields:{
            title: {
                message: '分组名名称',
                validators: {
                    notEmpty: {
                        message: '分组名不能为空'
                    },
                }
            },
			/*authcode: {
                message: '模块名',
                validators: {
                    notEmpty: {
                        message: '模块名不能为空'
                    },
                }
            },*/
			
			ico: {
                message: '图标',
                validators: {
                    notEmpty: {
                        message: '图标不能为空'
                    },
                }
            },
			  

        }
    });
	
 
});
 </script>


 